#string( REGEX REPLACE ".*/(.*)" "\\1" CURRENT_FOLDER ${CMAKE_CURRENT_SOURCE_DIR})
#message(${CURRENT_FOLDER})
set(TEST_NAME test_CHIP8)
message(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>${TEST_NAME}>>>>>>>>>>>>>>>>>>>>>>>>>")

set(TEST_SRC_PATH ${PROJECT_SOURCE_DIR}/test/${TEST_NAME})

file(GLOB ${TEST_NAME}_TEST_SRC
        ${TEST_SRC_PATH}/*.c
        ${TEST_SRC_PATH}/*.cpp
        ${TEST_SRC_PATH}/*.h
        ${TEST_SRC_PATH}/*.hpp
        )
foreach(FILE ${${TEST_NAME}_TEST_SRC})
    message(STATUS "FIND TEST ${FILE}")
endforeach()
add_executable(${TEST_NAME} ${${TEST_NAME}_TEST_SRC})
target_link_libraries(${TEST_NAME} CHIP8 )
message("<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<${TEST_NAME} DONE<<<<<<<<<<<<<<<<<<<<<<<<<<<")
